package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * Created by meizhonghao on 2018/05/11.
 */
@Component
//@ConfigurationProperties(prefix = "jiguang")
//@PropertySource("classpath:properties/jiguang.properties")
@DisconfFile(targetDirPath = "disconf", filename = "jiguang.properties")
public class JiguangProperties {
    /***
     *  极光路径
     */
    private String baseurl;
    /**
     * 认证参数
     */
    private String devkey;
    private String devsecret;
    /**
     * 基础标签接口
     */
    private String tagbaseurl;
    /***
     * 地址标签接口
     */
    private String addressurl;
    /***
     * 黑名单接口
     */
    private String blacklisturl;

    @DisconfFileItem(name = "jiguang.baseurl", associateField = "baseurl")
    public String getBaseurl() {
        return baseurl;
    }

    public void setBaseurl(String baseurl) {
        this.baseurl = baseurl;
    }

    @DisconfFileItem(name = "jiguang.devkey", associateField = "devkey")
    public String getDevkey() {
        return devkey;
    }

    public void setDevkey(String devkey) {
        this.devkey = devkey;
    }

    @DisconfFileItem(name = "jiguang.devsecret", associateField = "devsecret")
    public String getDevsecret() {
        return devsecret;
    }

    public void setDevsecret(String devsecret) {
        this.devsecret = devsecret;
    }

    @DisconfFileItem(name = "jiguang.tagbaseurl", associateField = "tagbaseurl")
    public String getTagbaseurl() {
        return tagbaseurl;
    }

    public void setTagbaseurl(String tagbaseurl) {
        this.tagbaseurl = tagbaseurl;
    }

    @DisconfFileItem(name = "jiguang.addressurl", associateField = "addressurl")
    public String getAddressurl() {
        return addressurl;
    }

    public void setAddressurl(String addressurl) {
        this.addressurl = addressurl;
    }

    @DisconfFileItem(name = "jiguang.blacklisturl", associateField = "blacklisturl")
    public String getBlacklisturl() {
        return blacklisturl;
    }

    public void setBlacklisturl(String blacklisturl) {
        this.blacklisturl = blacklisturl;
    }
}
